Method and system for implementing virtual machine images

ABSTRACT

Disclosed is an improved approach to implement virtualization objects in a virtualization system. The virtualization object from a first namespace is cloned as a snapshot that is accessible within a second namespace. To implement this, the virtualization object can be mounted as a target (implemented as a snapshot) that is locally accessible to the host.

CROSS REFERENCE TO RELATED APPLICATIONS

The present application is related to U.S. Pat. No. 8,601,473, Attorney Docket No. Nutanix-001, issued on Dec. 3, 2013, entitled “ARCHITECTURE FOR MANAGING I/O AND STORAGE FOR A VIRTUALIZATION ENVIRONMENT” and U.S. patent application Ser. No. 13/207,371, Attorney Docket No. Nutanix-004, filed on Aug. 10, 2011, entitled “METHOD AND SYSTEM FOR IMPLEMENTING WRITABLE SNAPSHOTS IN A VIRTUALIZED STORAGE ENVIRONMENT”, and which are all hereby incorporated by reference in their entirety.

BACKGROUND

A “virtual machine” or a “VM” refers to a specific software-based implementation of a machine in a virtualization environment, in which the hardware resources of a real computer (e.g., CPU, memory, etc.) are virtualized or transformed into the underlying support for the fully functional virtual machine that can run its own operating system and applications on the underlying physical resources just like a real computer.

Virtualization works by inserting a thin layer of software directly on the computer hardware or on a host operating system. This layer of software contains a virtual machine monitor or “hypervisor” that allocates hardware resources dynamically and transparently. Multiple operating systems run concurrently on a single physical computer and share hardware resources with each other. By encapsulating an entire machine, including CPU, memory, operating system, and network devices, a virtual machine is completely compatible with most standard operating systems, applications, and device drivers. Most modern implementations allow several operating systems and applications to safely run at the same time on a single computer, with each having access to the resources it needs when it needs them.

Virtualization allows one to run multiple virtual machines on a single physical machine, with each virtual machine sharing the resources of that one physical computer across multiple environments. Different virtual machines can run different operating systems and multiple applications on the same physical computer.

One reason for the broad adoption of virtualization in modern business and computing environments is because of the resource utilization advantages provided by virtual machines. Without virtualization, if a physical machine is limited to a single dedicated operating system, then during periods of inactivity by the dedicated operating system the physical machine is not utilized to perform useful work. This is wasteful and inefficient if there are users on other physical machines which are currently waiting for computing resources. To address this problem, virtualization allows multiple VMs to share the underlying physical resources so that during periods of inactivity by one VM, other VMs can take advantage of the resource availability to process workloads. This can produce great efficiencies for the utilization of physical devices, and can result in reduced redundancies and better resource cost management.

Many types of objects may be employed to implement a virtualization system. An “image” is a special type of object that that includes components of a virtual machine that is intended to run in the virtualization environment. The image is often maintained as a file, which includes a copy of the operating system, desktop, applications, and/or other components for the execution environment for a running VM. The VM would essentially use the image to “boot up” within the virtualization system. For example, an Windows 7 image can be maintained that correspond to the Windows 7 operating environment, where the image also includes a set of designated applications to run in that Windows 7 operating environment. In operation, that image can be used to boot up a new VM to allow a user to run a virtual Windows 7 desktop in the virtualization system.

FIG. 1A illustrates one possible approach that can be taken to implement images for virtualization. In this approach, an image repository 104 is employed to hold image objects, such as object 108 a. A host 110 may include a hypervisor 130 and a host storage device 106. Assume that there is a desire to a start a VM 102 at host 110 using image object 108 a from the repository 104. This can be implemented by copying the image object 108 a from repository 104 into the storage device 106 that is local to host 110. By creating a full copy 108 b of the image object 108 a at the host 110, this allows the host 110 to boot the VM 102 with a local copy 108 b of the image object 108 a that is locally accessible to the host 110.

However, there are numerous possible downsides associated with this approach. One source of inefficiency is that the entirety of the image needs to be copied from the image repository to the host. This can result in the consumption of an inordinate amount of storage space at the host, particularly if there are a large number of images that need to be copied and/or if the images have large file sizes. Furthermore, a significant amount of time and computing expense may need to be incurred to perform the copy operation that makes the local copy of the image at the local host.

Therefore, there is a need for a more efficient approach to implement virtualization objects, such as image files, that are stored in a remote repository.

SUMMARY

The present invention provides an improved approach to implement virtualization objects in a virtualization system. In some embodiments, the virtualization object from a first namespace is cloned as a snapshot that is accessible within a second namespace. To implement this, the virtualization object can be mounted as a target (implemented as a snapshot) that is locally accessible to the host.

Further details of aspects, objects, and advantages of the invention are described below in the detailed description, drawings, and claims. Both the foregoing general description and the following detailed description are exemplary and explanatory, and are not intended to be limiting as to the scope of the invention.

BRIEF DESCRIPTION OF THE DRAWINGS

The drawings illustrate the design and utility of embodiments of the present invention, in which similar elements are referred to by common reference numerals. In order to better appreciate the advantages and objects of embodiments of the invention, reference should be made to the accompanying drawings. However, the drawings depict only certain embodiments of the invention, and should not be taken as limiting the scope of the invention.

FIG. 1A illustrates one possible approach that can be taken to implement images for virtualization.

FIG. 1B illustrates an inventive approach to implement virtualization objects according to some embodiments of the invention.

FIG. 2A illustrates an architecture for implementing storage management in a virtualization environment according to some embodiments of the invention.

FIG. 2B illustrates an approach to implement some embodiments of the invention when used in an environment having service/controller VMs.

FIG. 3 shows a flowchart of an approach to implement some embodiments of the invention.

FIG. 4A illustrates where an original virtualization object from a first namespace is cloned as a snapshot that is separately accessible from within a second namespace.

FIG. 4B shows a flowchart of an approach where the file is separately accessible through the different namespaces.

FIG. 5A illustrates where an original virtualization object and its clone are accessible from within a common namespace.

FIG. 5B illustrates an architecture to implement the approach of FIG. 5A.

FIG. 5C shows a flowchart of an approach to access objects where the same namespace is usable to access both the original and clone of an object.

FIG. 6 provides an illustration of one possible approach to perform namespace management for data within a virtualization system.

FIG. 7 illustrates the cloned object implemented as a writable snapshot.

FIG. 8 is a block diagram of a computing system suitable for implementing an embodiment of the present invention.

DETAILED DESCRIPTION OF THE EMBODIMENTS OF THE INVENTION

The present invention provides an improved approach to implement virtualization objects in a virtualization system.

Overview

As previously discussed, there are numerous downsides associated with the approach of making a full copy of remote virtualization objects at a local host. A requirement to make full copies can result in the consumption of a very large amount of storage space at the host, especially if there are a large number of images that need to be copied and/or if the images have large file sizes. In addition, a significant amount of time and computing expense may be needed to perform the copy operations to make the local copies.

FIG. 1B illustrates an inventive approach to address these problems according to some embodiments of the invention. As before, the original virtualization object 108 a is stored in a remote repository 104. For example, in the context of virtualization images, the image repository can be implemented as a Glance repository where the virtualization images are stored as files within a NFS-based file structure. The Glance repository can be used in conjunction with the Openstack cloud-based architecture. Further details regarding Glance and Openstack can be found at the web address “www.openstack.org”, the contents of which are hereby incorporated by reference in their entirety.

In the approach of FIG. 1B, the virtualization object 108 a from the repository 104 is cloned as a “snapshot” that is accessible at the local host 110. In the computer science field, a snapshot is a term that is used to refer to the state of a set of data at a particular point in time. In some embodiments, the snapshot 108 c is implemented as a “copy-on-write” snapshot, where the snapshot is represented (at least initially) as a set of metadata that is created to describe the contents of the snapshot, rather than requiring a full copy of the original object 108 a.

This approach of cloning by using snapshots therefore avoids the need to make a full and immediate copy of the virtualization object at the host. This approach also permits the virtualization object located in a first namespace (e.g., the original virtualization object in the remote repository) to be referenced and accessed from within a second namespace (e.g., the snapshot at the local host.

Environment having Service/Controller VMs

The inventive approach is particularly useful in a virtualization environment where a controller/service virtual machine or VM (hereinafter referred to herein as a “Service VM” or “Controller VM”) is used to control and manage storage devices, including direct-attached storage in addition to network-attached and cloud-attached storage. The Service VM implements the storage controller logic in the user space, and with the help of other Service VMs in a cluster, virtualizes all storage hardware as one global resource pool. An example approach to implement service VMs and related virtualization architecture components is described in U.S. Pat. No. 8,601,473, issued on Dec. 3, 2013, which is hereby incorporated by reference in its entirety.

FIG. 2A illustrates an architecture for implementing storage management in a virtualization environment according to some embodiments of the invention. This figure shows two nodes 200 a and 200 b. Each node 200 a or 200 b runs virtualization software, such as VMware ESX(i), Microsoft Hyper-V, or RedHat KVM. The virtualization software includes a hypervisor 232/233 to manage the interactions between the underlying hardware and the one or more user VMs 202 a/202 b.

The service VMs 210 a/210 b manage storage and I/O activities and functions as a storage controller. Multiple such storage controllers coordinate within a cluster to form a single-system. The service VMs 210 a/210 b are not formed as part of specific implementations of hypervisors 232/233. Instead, the Service VMs run as virtual machines above hypervisors 232/233 on the various server nodes 200 a and 200 b, and work together to form a distributed system that manages all the storage resources, including the locally attached storage, networked storage, and cloud storage. Since the Service VMs run above the hypervisors 232/233, this means that the approach can be used and implemented within any virtual machine architecture, since the Service VMs of embodiments of the invention can be used in conjunction with any hypervisor from any virtualization vendor.

Each Service VM exports one or more block devices or NFS server targets that appear as disks to the user VMs. These disks are virtual, since they are implemented by the software running inside the Service VMs. Thus, to the user VMs, the Service VMs appear to be exporting a clustered storage appliance that contains some disks. All user data (including the operating system) in the client VMs resides on these virtual disks.

This creates a distributed platform that contains multiple servers 200 a and 200 b that manages multiple-tiers of storage. The multiple tiers of storage include storage that is accessible through a network, such as cloud storage or networked storage (e.g., a SAN or “storage area network”). The architecture also permits local storage that is within or directly attached to the server and/or appliance to be managed as part of the storage pool. Examples of such storage include Solid State Drives (henceforth “SSDs”) or Hard Disk Drives (henceforth “HDDs” or “spindle drives”). Virtual disks (or “vDisks”) can be structured from the storage devices in the storage pool.

The shared virtual disk 223 can be accessed by multiple user VMs on different server nodes 200 a and 200 b. However, the virtual disk 223 is administratively “owned” by the service VM 210 b on server node 200 b. This means that service VM 210 b is used to perform the actual read and write operations for its hosted storage objects, such as virtual disk 223. Therefore, all I/O requests for virtual disk 223 will be directed to service VM 210 b, e.g., by using standard IP forwarding (Network Address Translation) rules in the networking stack of the service VMs.

For I/O requests 250 b from a user VM 202 b that resides on the same server node 200 b, the process to handle the I/O requests 250 b is straightforward. Essentially, the I/O request is in the form of an iSCSI or NFS request that is directed to a given IP address. The IP address for the I/O request is common for all the service VM on the different server nodes, but VLANs allows the IP address of the iSCSI or NFS request to be private to a particular (local) subnet, and hence the I/O request 250 b will be sent to the local service VM 210 b to handle the I/O request 250 b. Since local service VM 210 b recognizes that it is the owner of the virtual disk 223 which is the subject of the I/O request 250 b, the local Service VM 210 b will directly handle the I/O request 250 b.

FIG. 2B illustrates an approach to implement some embodiments of the invention when used in an environment having service/controller VMs 220. As discussed above, the service VM 220 manages storage and I/O activities and functions as a storage controller for the VMs 102 within host 110.

The original virtualization object 108 a is stored in a remote repository 104. In the context of virtualization images, the image repository can be implemented as a Glance repository where the virtualization images are stored as files within a NFS-based file structure.

However, the conventional Glance approach is particularly problematic in this architecture, since the service VM 220 is now responsible for functioning as the storage controller for the VMs 102 at host 110. The conventional Openstack/Glance system does not have any capability that can accounts for, and handle, virtualization images where a service VM 220 is employed to control the storage devices.

The present embodiment addresses these problems by mounting the virtualization object at the local host. In one embodiment (not shown in FIG. 2B), the service VM 220 can be implemented as a NFS server, and hence the image 108 a (or its clone) is mountable to the service VM 220 as a mounted NFS object.

In the alternate approach shown in FIG. 2B, the virtualization image 108 a is not directly mounted to the service VM 220. Instead, a clone 108 c of the image is created and mounted as an iSCSI target 221 that is managed by the service VM 220 like any other storage object (such as physical storage 106). The clone 108 c can be created as a copy-on-write snapshot, where the snapshot is represented as a set of metadata corresponding to the underlying data, rather than the entirety of the data itself. The metadata provides information that allows the computing system to know about the existence of the snapshot and its relationship to the underlying data. Further details regarding one approach that can be taken to implement snapshots in a virtualization system is described in U.S. patent application Ser. No. 13/207,371, filed on Aug. 10, 2011, which is hereby incorporated by reference in its entirety.

FIG. 3 shows a flowchart of an approach to implement some embodiments of the invention. At 302, the process identifies the object in the repository to be cloned. This action can be taken, for example, to select one or more NFS-based image files from an image repository for which there is a desire to start a corresponding VM at a virtualization host.

At 304, the virtualization object is cloned to the host. This action can be performed by creating a copy-on-write snapshot of the image object. A set of metadata is created to represent the new snapshot, where the snapshot's metadata corresponds to the underlying data.

Next, at 306, the clone is mounted to the host. For example, if the selected image object is a NFS-based image file from an image repository, then the clone can be created as a copy-on-write snapshot embodied as an iSCSI target. The new iSCSI target is then mounted on the host.

Thereafter, at 308, the VM is connected to the cloned virtualization object. This can be performed, for example, to allow the VM to start up using the cloned image file. The cloned image is accessible by having the VM access the iSCSI target via iSCSI calls to the target.

Namespace Management

As illustrated in FIG. 4A, the original virtualization object 402 from a first namespace (Namespace 1) is cloned as a snapshot 404 that is separately accessible from within a second namespace (Namespace 2). To implement this, as discussed above, the virtualization object can be mounted as a target (implemented as a snapshot) that is locally accessible to the host.

FIG. 4B shows a flowchart of an approach where the file is separately accessible through the different namespaces. In this approach, the original object and its newly created clone are not within the same namespace. Instead, each is located within distinguishably different namespaces.

At 402, identification is made of the object to be accessed. The selected object can be, for example, an image file within a virtualization system.

A determination is made at 404 of the specific namespace associated with the object to be accessed. In the current example, the object may be associated with a first namespace for the Glance repository having the original image object. Alternatively, the object of interest may be associated with a second namespace for the host system having the clone of the image. While this example identifies only two alternative namespaces, one of ordinary skill in the art would readily recognize that the operative principles described herein are applicable to any number of different namespaces.

If the object is associated with the first namespace, then at 406, the access specifics/parameters for the object are configured for access to the first namespace. This can be performed, for example, by configuring and associating the appropriate access path for the first namespace to the object. Thereafter, at 408, that access path is used to access the object within the first namespace.

If the object is associated with the second namespace, then at 416, the access specifics/parameters for the object are configured for access to the second namespace. This can be performed by configuring and associating the appropriate access path for the second namespace to the object. Thereafter, at 418, that access path is used to access the object within the second namespace.

In an alternate embodiment, both the original object and its clone are accessible from within the same namespace. As illustrated in FIG. 5A, the original virtualization object 502 from a first namespace (Namespace 1) is cloned as a snapshot 504 in a second namespace (Namespace 2). However, in this approach, both the original object 502 and the clone 504 are accessible from within a first namespace.

This approach can be visualized as shown in the architecture of FIG. 5B. The original virtualization object 502 is created in the context of a first namespace associated with the image repository 104. A clone of the original object was created as a snapshot 208 in the context of a second namespace associated with host 110.

This embodiment of the invention allows access to both the original object and the clone from within the same namespace, e.g., the namespace associated with the image repository 104. In some embodiments, this is implemented by mounting the clone as an object within the object hierarchy of the first namespace. For example, in the context of virtualization images, the image repository can be implemented as a Glance repository where the virtualization images are stored as files within a NFS-based file structure. For this type of system, the clone would be mounted as another file within the NFS file structure of the repository. This type of mounting can also be implemented in the other direction as well, where the original object is mounted within the object hierarchy of the host.

FIG. 5C shows a flowchart of an approach to access objects where the same namespace is usable to access both the original and clone of an object. At 502, identification is made of the object to be accessed. The selected object can be, for example, either the original or the clone of an image file within a virtualization system.

A determination is made at 504 whether a common namespace is usable to access the objects. If not, then the process described with respect to FIG. 4B is employed to access the object(s) using the appropriate namespace.

If, however, the object of interest is associated with the common namespace, then at 506, the access specifics/parameters for the object are configured for access to the common namespace. This can be performed, for example, by configuring and associating the appropriate access path for the common namespace to the object.

Thereafter, at 508, that access path is used to access the object within the common namespace. For example, in the context of virtualization images, the image repository can be implemented as a Glance repository where the image files are mounted as files within a NFS-based file structure. For this type of system, the original image file could exist as an actual file within the NFS file structure. However, the clone would be mounted as a file within the NFS file structure. As shown in FIG. 5B, the clone can be placed within a subdirectory of the file structure having a common parent node as the original image file. Either of the image files would thus be addressable within the context of the namespace associated with the image repository by providing the appropriate NFS path within the repository for the image file of interest.

FIG. 6 provides an illustration of one possible approach to perform namespace management for data within a virtualization system. In this system, the underlying data is represented as a set of one or more “vdisks” or “virtual disks”. These are data constructs to hold data that are abstracted from the underlying storage hardware to hold that data. Each vdisk is addressable using an identifier that is unique to that vdisk. In effect, the vidsk identifier (vdisk ID) forms the namespace for the set of vdisks.

To management namespaces for virtualization objections, the vdisks and their underlying vdisk IDs are exposed to other namespaces. This is accomplished by mapping the other namespaces to the vdisks/vdisk IDs.

A mapping may be created for each of the possible access namespaces that are usable to access objects implemented as vdisks. For example, a first mapping (Mapping 1) can be used to map an NFS namespace to the vidusks/vdisk IDs. Similarly, a second mapping (Mapping 2) can be used to map an iSCSI namespace to the vidusks/vdisk IDs. Any number of mappings can be employed as needed to handle different namespaces for which the vdisks need to be exposed.

Clone Implemented as a Writable Snapshot

Embodiments of the present invention provide an approach for implementing the cloned objects as writable snapshots. As noted above, the embodiments of the present invention provides a very efficient approach for implementing clones as snapshots that can be used to immediately without incurring delays in providing access to the new snapshots. For data that is not copied from the parent snapshot to a child snapshot, data requests for such data are redirected to the contents of the parent snapshot.

In many cases, the visualization objects may need to be modified by a user during the user's operation of the VM. For example, consider the situation in which a disk image includes an operating system. As the user makes use of the operating system, it is likely that changes and modifications will occur to various files pertaining to the operating systems, such as to files that maintain the system registry.

To address this issue, the clone of the virtualization object can be implemented as a “writable” snapshot. A writable snapshot is a type of snapshot that permits modifications to the snapshot. In the present embodiment, the user is provided the writable snapshot in such a way that the user can later perform modifications to that snapshot. Once a modification is made to the snapshot, then a new variant of the snapshot is created which differs from the original snapshot. However, it is likely that both the original snapshot and the new variants of the snapshot will need to be maintained in the overall computing system. As more changes are introduced by different entities in the computing system, there will be an extending proliferation of such snapshot variants into the system.

According to some embodiments, writable snapshots are implemented by forking a parent snapshot into multiple children snapshots. This approach is conceptually illustrated in FIG. 7 which shows a parent snapshot that has been forked into two child snapshots 1 and 2. In this approach, both children snapshots 1 and 2 start off as exact copies of the parent snapshot. However, one snapshot (e.g., child 2) is designated as the “new” writable snapshot and the other (e.g., child 1) is designated as a copy of the parent snapshot that will now take the place of the parent snapshot. After the children snapshots 1 and 2 are created, future requests are no longer sent for processing to the parent snapshot. Instead, future requests for the writable snapshot are sent to the child snapshot 2 and all requests for the original snapshot are sent to the child snapshot 1.

To increase the performance of this forking process, the contents of the parent snapshot are not immediately copied to the child snapshots. Instead, the new child snapshots can be created without any perceptible delay by the user. This action may be performed by only immediately creating/copying selected metadata associated with the new child snapshots, where the full contents of the parent snapshot are not immediately copied to the child snapshots. The metadata is the information that allows the computing system to know about the existence of the new snapshots. The metadata also provides information regarding the parent snapshot, so that any data requests for data within the child snapshot can be redirected to the parent snapshot if the requested data had not yet been copied or created into the child snapshot. For example, configuration metadata (e.g., for a virtual disk) can be quickly and immediately created for the child snapshot (as opposed to, for example, mapping metadata for the blocks of the virtual disk which may not need to be created/copied immediately). Some or all of the content of the parent snapshot is not copied right away into the child snapshot, unless it is immediately needed, e.g., in order to modify that data in the child snapshot. For data within the child snapshots that have not changed, requests are actually referred to the parent snapshot. It is this aspect of embodiments of the invention that allows the writable snapshots to be immediately created, without requiring the user to undergo any perceptible wait time. The present approach takes advantage of the common content between the parent and child snapshots to effectively create child snapshots without any significant negative effects on the overall system performance, since all of the data from the parent snapshot does not need to be immediately copied to the child snapshot before users can start accessing the child snapshots.

The data content explicitly stored within in the child snapshots can be populated at a later point in time. There are several possible approaches that can be taken to populate the child snapshots with actual data. One possible approach is to perform a “lazy” copy process in which the contents of the parent snapshot are copied to the child snapshots over time. For example, the system could be configured to wait until light period of system resource usage or activity, e.g. in the middle of the night (when there are less number of users using the system), to perform the copying of data from the parent snapshot to the child snapshots.

Another possible approach is to wait until there is a request to “write” or “modify” an item of data in the child snapshot. In this situation, the request will cause the data within the child snapshot to change. Depending upon the type of operation being performed to the data in the child snapshot, there may or may not be the need to perform copying from the parent snapshot to a child snapshot. For example, the requested operation may be directed to an operation that will completely or significantly overwrite the contents of a block in the child snapshot. In this situation, it does not make sense to copy the data from the parent snapshot since the data will be overwritten anyway.

On the other hand, the requested operation may only overwrite a small portion of the data in the block. In this situation, it may make sense to copy the block data from the parent snapshot to the child snapshot, and after copying the data, to modify only the portion that is to be modified by the user request. Alternatively, this situation can be handled by partitioning the block such that the unchanged portions will still be referenced to the parent snapshot, but the changed portions of the block will exist as actual data within the child snapshot.

A combination of these approaches can be taken to populate the data content within the child snapshots. Alternatively or in combination with these approaches, the system can be configured to maintain data references for data requests from the child snapshots to the parent snapshot.

In any case, it is possible for some portion of the child snapshot to contain actual data while other portions remain in a state in which data requests are referenced to the parent snapshot.

As noted above, metadata associated with the new snapshots are created at the time of creation for the child snapshots. The metadata is the information that allows the computing system to know about the existence of the new snapshots. The metadata also provides information regarding the parent snapshot, so that any data requests for data within the child snapshot can be redirected to the parent snapshot if the requested data had not yet been copied or created into the child snapshot.

Further details regarding an exemplary approach to implement writable is described in co-pending U.S. Ser. No. 13/207,371, filed on Aug. 10, 2011, which is hereby incorporated by reference in its entirety.

Conversions

Some embodiments of the present invention provide an approach for performing conversions to the image data. This permits image data that originate for a first platform to be converted to another platform. For example, some embodiments support the conversion of VMDK (virtual disk for the VMWare virtualization product) to VHDX (virtual disk for the Microsoft HyperV product), and vice versa.

To accomplish this, the process starts by taking a copy of the image data. In one embodiment, a writable snapshot is obtained that correspond to the data to be converted.

Next, metadata is stored to facilitate the conversion process. The metadata pertains to format and header changes that are needed for the conversions. These metadata changes include, for example, changes relating to writing of new headers to data layers.

The conversions are implemented according to the metadata set in the previous step, and the new file is presented (with new extensions and format) in the same or different namespace. At this point, the converted file is now accessible, in the appropriate namespace, to be used to start up a new VM.

Any conversion types can be addressed using this technique. As a non- limiting list of example, this approach can be taken to perform conversions for the SMB format to the iSCSI format, SMB format to NFS format, iSCSI format to SMB format, NFS format to SMB format, and iSCSi format to NFS conversion types.

System Architecture

FIG. 8 is a block diagram of an illustrative computing system 1400 suitable for implementing an embodiment of the present invention. Computer system 1400 includes a bus 1406 or other communication mechanism for communicating information, which interconnects subsystems and devices, such as processor 1407, system memory 1408 (e.g., RAM), static storage device 1409 (e.g., ROM), disk drive 1410 (e.g., magnetic or optical), communication interface 1414 (e.g., modem or Ethernet card), display 1411 (e.g., CRT or LCD), input device 1412 (e.g., keyboard), and cursor control.

According to one embodiment of the invention, computer system 1400 performs specific operations by processor 1407 executing one or more sequences of one or more instructions contained in system memory 1408. Such instructions may be read into system memory 1408 from another computer readable/usable medium, such as static storage device 1409 or disk drive 1410. In alternative embodiments, hard-wired circuitry may be used in place of or in combination with software instructions to implement the invention. Thus, embodiments of the invention are not limited to any specific combination of hardware circuitry and/or software. In one embodiment, the term “logic” shall mean any combination of software or hardware that is used to implement all or part of the invention.

The term “computer readable medium” or “computer usable medium” as used herein refers to any medium that participates in providing instructions to processor 1407 for execution. Such a medium may take many forms, including but not limited to, non- volatile media and volatile media. Non-volatile media includes, for example, optical or magnetic disks, such as disk drive 1410. Volatile media includes dynamic memory, such as system memory 1408.

Common forms of computer readable media includes, for example, floppy disk, flexible disk, hard disk, magnetic tape, any other magnetic medium, CD-ROM, any other optical medium, punch cards, paper tape, any other physical medium with patterns of holes, RAM, PROM, EPROM, FLASH-EPROM, any other memory chip or cartridge, or any other medium from which a computer can read.

In an embodiment of the invention, execution of the sequences of instructions to practice the invention is performed by a single computer system 1400. According to other embodiments of the invention, two or more computer systems 1400 coupled by communication link 1415 (e.g., LAN, PTSN, or wireless network) may perform the sequence of instructions required to practice the invention in coordination with one another.

Computer system 1400 may transmit and receive messages, data, and instructions, including program, i.e., application code, through communication link 1415 and communication interface 1414. Received program code may be executed by processor 1407 as it is received, and/or stored in disk drive 1410, or other non-volatile storage for later execution.

In the foregoing specification, the invention has been described with reference to specific embodiments thereof. It will, however, be evident that various modifications and changes may be made thereto without departing from the broader spirit and scope of the invention. For example, the above-described process flows are described with reference to a particular ordering of process actions. However, the ordering of many of the described process actions may be changed without affecting the scope or operation of the invention. The specification and drawings are, accordingly, to be regarded in an illustrative rather than restrictive sense. 

1. A method, comprising: identifying a virtualization object in a repository; cloning the virtualization object as a snapshot in a storage device accessible by a virtualization node, wherein the snapshot is implemented as a copy-on-write snapshot that does not require a full copy of the virtualization object to be immediately copied to the storage device; and using the virtualization object to implement virtualization at the node.
 2. The method of claim 1, wherein the virtualization object comprises a virtualization image, and the virtualization image is used to start up a virtual machine at the node.
 3. The method of claim 1, in which a controller virtual machine functions as a storage controller for the node, and wherein the snapshot of the virtualization object in the storage device is accessed from the controller virtual machine.
 4. The method of claim 1, in which a controller virtual machine functions as a storage controller for the node, and wherein the snapshot of the virtualization object is mounted as a target that is managed by the controller virtual machine.
 5. The method of claim 1, wherein the virtualization object in the repository and the snapshot of the virtualization object in the storage device are located within different namespaces.
 6. The method of claim 1, wherein the virtualization object in the repository and the snapshot of the virtualization object in the storage device are both accessible from within the same namespace.
 7. The method of claim 6, wherein mappings are utilized that map names in the namespace to virtual disk identifiers.
 8. The method of claim 1, wherein the snapshot comprises a writeable snapshot.
 9. The method of claim 1, wherein the virtualization object is converted to a different format.
 10. A computer program product embodied on a non-transitory computer readable medium, the computer readable medium having stored thereon a sequence of instructions which, when executed by a processor causes the processor to execute a method, the method comprising: identifying a virtualization object in a repository; cloning the virtualization object as a snapshot in a storage device accessible by a virtualization node, wherein the snapshot is implemented as a copy-on-write snapshot that does not require a full copy of the virtualization object to be immediately copied to the storage device; and using the virtualization object to implement virtualization at the node.
 11. The computer program product of claim 10, wherein the virtualization object comprises a virtualization image, and the virtualization image is used to start up a virtual machine at the node.
 12. The computer program product of claim 10, in which a controller virtual machine functions as a storage controller for the node, and wherein the snapshot of the virtualization object in the storage device is accessed from the controller virtual machine.
 13. The computer program product of claim 10, in which a controller virtual machine functions as a storage controller for the node, and wherein the snapshot of the virtualization object is mounted as a target that is managed by the controller virtual machine.
 14. The computer program product of claim 10, wherein the virtualization object in the repository and the snapshot of the virtualization object in the storage device are located within different namespaces.
 15. The computer program product of claim 10, wherein the virtualization object in the repository and the snapshot of the virtualization object in the storage device are both accessible from within the same namespace.
 16. The computer program product of claim 15, wherein mappings are utilized that map namespaces to virtual disk identifiers.
 17. The computer program product of claim 10, wherein the snapshot comprises a writeable snapshot.
 18. The computer program product of claim 10, wherein the virtualization object is converted to a different format.
 19. A virtualization system, comprising: a repository having a virtualization object; a node that runs one or more virtual machines; and a storage device that is accessible to the node, wherein the storage device comprises a clone of the virtualization object, the clone implemented as a snapshot, wherein the snapshot is a copy-on-write snapshot that does not require a full copy of the virtualization object to be copied to the storage device.
 20. The system of claim 19, in which the node comprises a virtual machine that is started by the virtualization object, wherein the virtualization object comprises a virtualization image.
 21. The system of claim 19, in which a controller virtual machine functions as a storage controller for the node, and wherein the snapshot of the virtualization object in the storage device is accessed from the controller virtual machine.
 22. The system of claim 19, in which a controller virtual machine functions as a storage controller for the node, and wherein the snapshot of the virtualization object is mounted as a target that is managed by the controller virtual machine.
 23. The system of claim 19, wherein the virtualization object in the repository and the snapshot of the virtualization object in the storage device are located within different namespaces.
 24. The system of claim 19, wherein the virtualization object in the repository and the snapshot of the virtualization object in the storage device are both accessible from within the same namespace.
 25. The system of claim 24, wherein mappings are utilized that map namespaces to virtual disk identifiers.
 26. The system of claim 19, wherein the snapshot comprises a writeable snapshot.
 27. The system of claim 19, wherein the virtualization object is converted to a different format. 